package com.taotao.springmvc.init;

import java.lang.reflect.Method;

public class TaoTaoMappingRegistration extends TaoTaoMappingRegistContainer {
    /**
     * 控制器类
     */
    private Object handler;
    /**
     * 具体对应的方法
     */
    private Method handlerMethod;
    /**
     * 请求url
     */
    private String mappingUrl;

    public TaoTaoMappingRegistration(Object handler, Method handlerMethod, String mappingUrl) {
        this.handler = handler;
        this.handlerMethod = handlerMethod;
        this.mappingUrl = mappingUrl;
    }

    public Object getHandler() {
        return handler;
    }

    public void setHandler(Object handler) {
        this.handler = handler;
    }

    public Method getHandlerMethod() {
        return handlerMethod;
    }

    public void setHandlerMethod(Method handlerMethod) {
        this.handlerMethod = handlerMethod;
    }

    public String getMappingUrl() {
        return mappingUrl;
    }

    public void setMappingUrl(String mappingUrl) {
        this.mappingUrl = mappingUrl;
    }

    public TaoTaoMappingRegistration() {
    }
}